#include "protocol.h"

PDU *get_PDU(myuint length){
    // length+=128;
    myuint AllLength=sizeof(PDU)+length;
    PDU *SGdata=(PDU*)malloc(AllLength);
    memset(SGdata,0,AllLength);
    SGdata->PDULength=AllLength;
    SGdata->MsgLength=length;
    return SGdata;
}
